home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1997
/
HAM Radio 1997.iso
/
vcls
/
moden
/
adpbedit.int
< prev
next >
Wrap
Text File
|
1996-04-08
|
2KB
|
78 lines
{$G+,X+,F+}
{Conditional defines that may affect this unit}
{$I AWDEFINE.INC}
{*********************************************************}
{* ADPBEDIT.PAS 1.01 *}
{* Copyright (c) TurboPower Software 1995 *}
{* All rights reserved. *}
{*********************************************************}
unit AdPBEdit;
{-Phone book editor}
interface
uses
SysUtils, WinTypes, WinProcs, Messages,
Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, Buttons,
AdPBook, ExtCtrls, Grids, AdPEntry,
AdExcept, OoMisc;
type
{form for editing phonebooks}
{.Z+}
TPhonebookForm = class(TForm)
AddBtn: TBitBtn;
ChangeBtn: TBitBtn;
RemoveBtn: TBitBtn;
HelpBtn: TBitBtn;
OkBtn: TBitBtn;
ListGrid: TDrawGrid;
ListHeader: THeader;
procedure ListGridDrawCell( Sender : TObject ; Col, Row : Longint;
Rect : TRect; State : TGridDrawState );
procedure FormCreate(Sender: TObject);
procedure HeaderSized(Sender: TObject; ASection, AWidth: Integer);
procedure AddBtnClick(Sender: TObject);
procedure ChangeBtnClick(Sender: TObject);
procedure RemoveBtnClick(Sender: TObject);
procedure ListGridDblClick(Sender: TObject);
protected
LeftEdge : Word;
Items : TList;
Phonebook : TApdPhonebook;
procedure ResizeGridColumns;
{-Change the widths of the grid columns to match the header sections}
procedure EditPrim;
{-Edit the currently selected record}
public
constructor Create(const AOwner : TComponent; const PB : TApdPhonebook);
destructor Destroy; virtual;
end;
{.Z-}
{component for editing phonebooks}
TApdPhonebookEditor = class(TCommonDialog)
protected {private}
{.Z+}
FPhonebook : TApdPhonebook;
procedure Notification(AComponent : TComponent; Operation : TOperation); override;
public
constructor Create(AOwner : TComponent); override;
{.Z-}
procedure Execute;
published
property Phonebook : TApdPhonebook
read FPhonebook write FPhonebook;
end;